//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.jim.core.packets;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class BusinessBody extends Message {
    String type;
    String title;
    String content;
    String fromId;
    String fromName;

    List<String> toIds;
    String toId;

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }

    public List<String> getToIds() {
        return toIds;
    }

    public void setToIds(List<String> toIds) {
        this.toIds = toIds;
    }

    public BusinessBody() {
        this.scope = "business";
    }

    public BusinessBody(String appId, String id, Integer cmd, Long createTime, JSONObject extras,String type,String title,String content,String fromId,String fromName,List<String> toIds) {
        this.appId = appId;
        this.scope = "business";
        this.id = id;
        this.cmd = cmd;
        this.createTime = createTime;
        this.extras = extras;
        this.type=type;
        this.title=title;
        this.content=content;
        this.fromId=fromId;
        this.fromName=fromName;
        this.toIds=toIds;

    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }


    public static Builder newBuilder() {
        return new Builder();
    }

    public static class Builder extends Message.Builder<BusinessBody, Builder> {

        String type;
        String title;
        String content;
        String fromId;
        String fromName;
        List<String> toIds;
        public Builder() {
        }

        public Builder type(String type) {
            this.type = type;
            return this;
        }

        public Builder title(String title) {
            this.title = title;
            return this;
        }

        public Builder content(String content) {
            this.content = content;
            return this;
        }
        public Builder fromId(String fromId) {
            this.fromId = fromId;
            return this;
        }
        public Builder fromName(String fromName) {
            this.fromName = fromName;
            return this;
        }
        public Builder toIds(List<String> toIds) {
            this.toIds = toIds;
            return this;
        }

        protected Builder getThis() {
            return this;
        }

        public BusinessBody build() {
            return new BusinessBody(this.appId, this.id, this.cmd, this.createTime, this.extras,this.type,this.title,this.content,this.fromId,this.fromName,this.toIds);
        }
    }
}
